Place it at the climax of a fail edit, right where the plan collapses, so the payoff lands at the exact moment the viewer expects the ending. Hold the next beat for a reaction shot, letting the joke settle before the edit moves on.