You should plan to have an in-person meeting with your principal to let them know you're resigning. Moving on to something new is a serious step, and deserves a serious conversation. Slipping the news about your departure into a casual conversation is generally off-putting.