You can insulate second-floor rim joists following the same steps shown here if you happen to tear out a ceiling during remodeling ... you can seal large gaps with expanding foam sealant later.