When someone asks "¿Qué estudias?" ("What are you studying?"), the standard response begins with "Estudio..." followed by your field. Here's a ready-to-use framework:
For more context, say: "Estoy en la universidad estudiando [tu carrera]." ("I'm at university studying [your field].") This works in both formal and casual settings.
Estudio is the first-person singular present of estudiar. Since Spanish verbs encode the subject, you don't need "yo" (I) unless emphasizing contrast. Simply insert your major after estudio and you're conversing naturally.