Put it at the end of a failed-plan or reveal scene, after the Dun Dun Dun cue builds the tension and just before the payoff lands. Follow it with a Vine Boom to punctuate the twist, keeping the laugh as the centre of the sequence rather than burying it under other effects.