Find a project you are passionate about, fix the code, send a patch. Its 'that' easy.
Many mature software projects have some bugs marked as 'Junior Jobs'. They are issues which maintainers felt could be fixed by a newcomer.
OpenHatch[0] is a website which helps you find such projects/issues easily.