Place it at the turning point of a fail edit, just after the mistake is visible and before the reaction shot. Follow it with the Ba Dum Tss drum sting for a classic punchline finish, or let a Funny Ha Ha Laugh carry the moment onward when the joke needs a lighter close.