Place it at the end of a short fail or confession sequence, after the setup has finished and before the reaction shot. Follow it with a brief crowd gasp, then a closing sting, so the edit moves from setup to punchline to aftermath without losing the joke.