Place it at the very end of a helpful moment, after the correct answer sting and before the closing laugh, so the thanks becomes the payoff. Pair it with a quick Yeah for agreement, then let a light laugh close the scene without adding another thank-you.