I have never needed one from Thailand coming or going, but in Singapore two years ago, I was forced to buy a return ticket to Singapore.  The attendant at the airport claimed that was a rule.
I chose a cheap SCOOT ticket and after landing in Thailand canceled that return ticket.