I agree with much of what @Ek0nomik has stated, as I was going to say the same, but I will add one item that he did not and that is to say: you should also consider the value of the education for the sake of the education. While the education opens doors for better pay, prestige and so on, it always comes down to what value YOU see in it. Education for knowledge sake if you will.
Unfortunately in a world that such endeavors can cost an arm and a leg, I can see why my position would be unpopular. After all who cares about knowledge and education for education sake when it costs me a ton and I am on the hook to pay it back. Unless independently wealthy, that is a great consideration in whether or not to go that route.
In your case, if you plan on being a teacher, you can get much of your loans waived for your teaching service, so consider that and if not already familiar with that, make sure you look it up. Although I am only familiar with the US regulations on this, not sure where you are but I suspect some sort of similar consideration exists in some form everywhere. SO you can have your cake and eat it too, get the education/knowledge and also not end up paying forever for it.
I myself spent a decade and half in the corp and during all that time I got several degrees. Not saying this to be immodest or brag (just to highlight the point I am making) but I have BS in 4 subjects, BA in 2, MS in 2, AS in 1, PhD in 2, and a JD. That resulted in me having $68k in debt (I didn't borrow for everything, I worked for a lot of it) but as a teacher, researcher, and yes a soldier, I did have my debt reduced and if I keep teaching and counseling, my service will reduce it even further.
SO consider other benefits of having an education, not just the cost; but DO consider the cost before you commit to something that might bury you. Make sure you have a solid plan to move forward and preferably things that are tangibly connected to yourself and not possible offspring :)