In the discrete-time new-Keynesian model with public debt, Ramsey optimal policy eliminates the indeterminacy of simple-rules multiple equilibria between the fiscal theory of the price level versus new-Keynesian versus an unpleasant equilibrium. If public debt volatility is taken into account into the loss function, the interest rate responds to public debt besides inflation and output gap. Else, the Taylor rule is identical to Ramsey optimal policy when there is zero public debt. The optimal fiscal-rule parameter implies the local stability of public-debt dynamics (“passive” fiscal policy).