If you're going to stay for two months, I advise you to purchase a local SIM card, firstly to avoid expensive bills on your return home, and secondly because it'll allow you to pay directly from your phone using a secure one-to-one data call, with no wifi risks. With a data plan, you can also make your calls home via Whatsapp/Signal/Messenger -whatever software you use!- at a ridiculous cost.
If your phone supports two SIM cards, you can have both (yours and the Spanish one) on simultaneously, thus receiving your calls to your personal number and making calls via the Spanish number. If it doesn't, you can program the transfer of your calls to your number to the new local number. Check your provider though cause this can be expensive -depending on the competitiveness of your regular telephone provider.
There are several companies offering telephone service in Spain (https://www.kelisto.es/telefonia-movil/mejor-compra/las-mejores-tarifas-de-prepago-3001) but, to be frank, for peace of mind I'd stick to the biggest ones namely Vodaphone, Orange and Movistar. In all instances, they offer quite competitive prepaid rates (no contract required) ranging from 10-15€/month for unlimited calls and 50 to 100GB of data, more than enough for a "normal user".
These days, telephone service in most European countries has become a commodity and the prices are quite low. Compare this to the services offered in your country for "international travellers", and you'll notice that most often you're better off getting a local SIM.
An added bonus: with a SIM card from any EU carrier, you can enjoy the same rates (the same ones!) when you're travelling in any other EU country.