How should the sentence be punctuated using quotation marks?

Answer:
"Be careful, the teacher told us, to write your name legibly"