Output getSegments() array in template
That's because getSegments() returns an array. You can either get one of those segments by using:

{% set segments = craft.request.getSegments() %}
{{ segments[0] }}


Or loop through all returned segments:

{% for segment in craft.request.getSegments() %}
    {{ segment }}
{% endfor %}