Place it near the end of an edit, after Sudden Suspense has set up the threat of being caught and just before No No Wait Wait takes over the scene. Put a reaction shot or a freeze frame on the cut so the joke lands, then cut away quickly before the next scene starts.