Debt Dynamics and the Macroeconomy