In case this is not a rethorical question: Using the backup codes or a copy of the barcode you printed.
Regardless of what method you use I assume you want a secure backup method.
> but you can get a new sim
Maybe easily if you are a private person and happen to lose the phone in your home country during opening hours. I tried this method once but the company just forwarded me to the internal helpdesk of the company I work for (this is a good thing, but previously they issued SIM cards to me). Got a sim like a week later.
* By using the TOTP recovery codes (you did write them down, right ?)
* By using a TOTP client on another device (the client I use syncs it's (encrypted) database with all my iDevices)
* By restoring from a backup of your phone (you do have a backup, right ?)
2fa on phone totp is safe; SMS 2fa is less safe, prone to easy attacks. For phone somebody need to come n physically snatch your phone, get app lock password from you. For SMS, in few countries, not in India(in India either you need to prove that you own that existing SIM by getting a code there, or by seeing a customer service desk) a bit of social engineering & few answers from Facebook profile enables hackers to get a copy of SIM.
This is worse. (edit: i.e. easier for the attacker since they don't need physical access to your device.) You still control your phone, but the attacker takes your phone number.
Also, phone numbers are pretty useful for contacting people, and most people have an address book with their friends and family and other important contacts. There's tremendous social value for people in those numbers continuing to work, to the extent possible. You're never going to be able to tell everyone who might want to know when your number changes, especially if you for a new number when yours was assigned to someone else.