Place it near the end of a comic edit, just after the failed joke or awkward slip, so it acts as the payoff rather than the setup. Follow it with a light laugh, then a reaction sound, to let the joke settle before the next scene begins.