Place it just after the mistake is revealed, then follow it with Darth Vader Nooo for a bigger villain reaction, or cut to Fail Sound when the joke needs a flat ending.