Wiktionary
that's the ticket
phr. (context idiomatic English) That's just right; that's just what is needed.
Usage examples of "that's the ticket".
Because a certain shrewd New Yorker understood the true art of persuasion, which lies in convincing the gull, against all reason, that he can't afford not to buy - salesmanship, that's the ticket.