It sits just before the payoff, after the setup has built tension, with an air horn after it to close the sequence, or a drum sting when the moment turns comic instead.