To use WSL as a remote interpreter on Windows, open the Settings/Preferences dialog &shortcut:ShowSettings;, go to the Languages & Frameworks | Ruby SDK and Gems page. Click The Add button and select New remote.... In the invoked dialog, select WSL and specify the desired Linux distribution. Learn more at WSL.

Configure Remote Ruby Interpreter