Place it near the end of a breakup scene, after the sad violin moment has played out and before the reaction shot. Follow it with a short surprised gasp to sell the sudden switch, then cut to the next scene while the joke is still fresh.