Change button text after clinking it on Unity

I have a button name GameMode and the text inside this button is “Game Mode : Casual”.
How can i change the button text after clinking the button ?
Example : “Game mode : Casual” —> “Game mode : Ranked” After clicking the button, and if I click the button again it change back to “Game mode : Casual”.

Let us see the code, then we might help.