Pay Down Debt or Invest?

Should you pay down or invest if you have extra money?