Debt, investing and retirement

Which dollar works harder: killing debt, or going into investments.