Place it at the exact frame the mistake is revealed, after a cartoon slip sound for the physical gag and before a wrong answer game show sound to close a quiz-style fail sequence in your edit.