Place it at the peak of a fail, after a short buildup, then follow it with Ba Dum Tss to close the gag and keep the edit moving. For a more mock-serious version, open with Drama before the impact, then let the pie moment carry the payoff on its own.