As I understand things, if you go to the immigration people before you leave and admit that you are an overstay, then yes, stamp and a fine for 21 days overstay.
If you just try to leave and hope that no one notices, then yes - arrested.
Immigration here on Samui check passports for overstays for foreigners catching the early ferries. They are often on visa runs.