The recession left a deep mark on general government finances and the debt ratio , turning previously strong budget surpluses into deficits .