Does inflation affect debt-to-gdp ratio?
Yes, it does affect it.
Debt-to-GDP ratio is defined as:
$$DtGDP=\frac{D}{PY}$$
Where $D$ is nominal value of all debt (past and present - debt is not recorded at real value) and $PY$ is nominal GDP (e.g. real GDP $Y$ times price level $P$).
If country does not issue new debt $D$ then trivially inflation which by definition is positive change in $P$ would reduce DtGDP.
Of course, if country decides to issue new debt different things would happen. However, inflation only indirectly affects government borrowing. If inflation is high government might go for more debt to cover higher expenses, but government could equally decide to keep its current expenses same or even reduce them.
Hence inflation has only direct effect on reducing DtGDP. Indirectly, through changing government behavior it could make government borrow more so it could increase it, but then inflation is only one factor out of many that determines how much government borrows each year.
Is the change in nominal interest rate exactly mirroring the change in prices?
This is not relevant. Government uses fixed income securities (e.g. bonds) that do not pay more coupons when interest rate changes. Interest rate payments are also not part of D to begin with.
This being said nominal interest rate is given by: $i \approx r + \pi$ so indeed when inflation increases by 2% (ceteris paribus) nominal interest rate increases by approx 2% but that is only tangential to this issue since interest payments are not part of D, and government pays fixed interested on its old debt.
Why don't we directly use real quantities?
It does not matter the result would be literally the same. Real quantity is deflated quantity. Use P as a deflator for both debt and nominal output and you get:
$$rDtGDP = \frac{D/P}{PY/P} = \frac{D}{PY} \frac{P}{P} = \frac{D}{PY}1= \frac{D}{PY}$$
rDtGDP=DtGDP. Deflating variables here is pointless waste of time.