Here are a few options:
* 선생님, 감사합니다 (Seonsaengnim, gamsahamnida): This is the most common and polite way to say "Thank you, teacher." `선생님 (seonsaengnim)` means "teacher" and is respectful. `감사합니다 (gamsahamnida)` means "thank you." This is suitable for most situations.
* 선생님, 고맙습니다 (Seonsaengnim, gomawsseumnida): Similar to the above, but slightly less formal. `고맙습니다 (gomawsseumnida)` is also "thank you," but a bit more casual. Still perfectly respectful for a teacher, but might be preferred in a slightly less formal setting.
* 선생님, 감사해요 (Seonsaengnim, gamsahaeyo): This is a more informal way to say "thank you, teacher," suitable if you have a close relationship with your teacher or are speaking to a younger teacher.
In short, 선생님, 감사합니다 (Seonsaengnim, gamsahamnida) is the safest and most generally appropriate choice.