The S&P 500 is in record territory, and investors are pricing in a quarter-point cut to interest rates on Wednesday.