If you can get 3% nominal and hold debt at 2%, it doesn't matter what inflation is, since your debt isn't in inflation-adjusted dollars. Indeed, the higher the rate of inflation, the less it makes sense to pay off debt. If you have debt at 5%, and your real rate of return is only 3%, it might still make sense not to pay off that debt if inflation is > 2%.
Paying off debt is not risk-free, in the sense that paying down loans now is a bet on future inflation being low.