If gusl is farz during fast, how to perform it? Can we gargle water or put water in mouth and in nose?

It’s the same way you perform Ghusul . You can gather water in as long as you don’t swallow anything.