I do not know how your flight is arranged, or where you will be (legally) departing Thailand. IF you depart Thailand (as in, stamped out) in Samui, you can not get an re-entry permit at Suvarnabhumi. IF you are stamped out at Suvarnabhumi, then you can get a re-entry permit.
I'd save the stress and get a re-entry permit before you leave.
Here's the contact information for Surat Thani. I believe all immigration offices there will sell re-entry permits, and you can use any immigration office.
************************************************